package{
	/**
	 * class for testing regular expressions
	 */
	public class Regex {

		public static const WHITESPACE:RegExp = /[ \t\n\r]+/;
		public static var PX_PATTERN:RegExp = /^(-?\d+)\s*px$/i;
		public static var RGB_PATTERN:RegExp = 
			/rgb\([ \t]*(\d{1,3})[ \t]*,[ \t]*(\d{1,3})[ \t]*,[ \t]*(\d{1,3})[ \t]*\)/i;

		private function demo(name:*, ... rest):* {
			str = str.replace( /\uffa0/g, "\u00a0" );
			str = str.replace( /"/g, "&quot;" );

			for each( var attr:XML in node.@* ) {
				buf += " " + attr.localName()+"=\""+encodeXMLChars(attr.toString())+"\"";
			}
		}

	}
}